//
//  ContentUnitViewController.h
//  Growth
//
//  Created by Hobo.Chen on 12/27/11.
//  Copyright 2011 MEETStudio. All rights reserved.
//
/*
 内容界面基类
 继承的子类：
 ChannelViewController
 TimelineViewController
 */
#import <UIKit/UIKit.h>
#import "PushRightViewController.h"

typedef enum {
	TLRecommendContent = 0,
    ChannelContent,
	TLTrendsContent,
	TimelineContent,
	CHRecommendContent,
	CHListContent,
    AllCHContent,
	TLTrendsDetailContent,
    MyShoucangContent,
    MainWindowContent,
    ButtonView,
    MyFamilyView,
    UserView,
    ProfileView
}ContentType;

@protocol ContentViewControllerDelegate;

@interface ContentUnitViewController : PushRightViewController {
    ContentType contentType;
}

@property (assign) id<ContentViewControllerDelegate> delegate; 

@property (nonatomic) ContentType contentType;

- (id)initWithContentType:(ContentType)type;


@end


//Delegate
@protocol ContentViewControllerDelegate <NSObject>
@optional 

//下载用户信息
-(void)loadTimelineInfo;

// 绑定第三方
-(void)loadThirdPartView;

- (void)userLoginSuccess;

- (void)showMenuView;
-(void)showAllMenu;
-(void)showCamera;
- (void)showRecordMenu;
- (void)hideRecordMenu;

- (void)loadLoginView;

- (void)toProfileView:(id)sender;

- (void)toFriendsView:(id)sender;

- (void)toTLTrendsView:(id)sender;

- (void)toTLRecommendView:(id)sender;

- (void)toCHRecommendView:(id)sender;
- (void)toCHListView:(id)sender;

//Menu & Content Delegate
- (void)toTimelineView:(id)sender;
- (void)toChannelView:(id)sender;

-(void)toMyShoucang:(id)sender;
-(void)toBmiRecordView:(id)sender;
-(void)toWritingRecordView:(id)sender;
-(void)toFoodRecordView:(id)sender;
-(void)toPhotoView:(UIImage *)image;
- (void)toPhotosUpload:(id)sender;
-(void)toBianbianView:(id)sender;
-(void)toFamilyView:(id)sender;
-(void)toMyLetterView:(id)sender;
-(void)toSettingView:(id)sender;
-(void)toUserSettingView:(id)sender;
-(void)toTimelineSettingView:(NSDictionary *)timelineDict;
-(NSString *)getMessageCount;

-(void)toMyMessageView:(int)messageCount;
-(void)toModifyKeyView;
-(void)logoutAction;

- (void)loadRegistView;
-(void)toMyAttentionView;
-(void)toHaveAttentionView;
-(void)toTimelineListModifyView:(id)sender;

//日志详情
-(void)toDiaryContentView:(int)did;


- (void)toTLTrendDetailView:(NSString *)uid array:(NSMutableArray *)array row:(int)row type:(NSString *)type;

-(void)toUserView:(id)sender;

- (void)toBabyTimelineView:(id)sender userId:(int)uid;


-(void)toShareToDoView;

-(void)setImagePickerPresentController:(UIImagePickerController *)imageController;

-(void)toplanListView;

-(void)toAnniversaryView;

-(void)toAddFamilyMember;


-(void)toAddAnniversaryView;

-(void)toImageWall;

-(void)setMenuControllerTapEnabel:(BOOL)tap;

//更新好友数量
-(void)updateAttentionNum;

//上传离线记录
-(void)upTheLocalDiary;

//保存离线上传数据
-(void)saveRecordData:(NSString *)theBodyString;

//发布记录
-(void)sendRecordData:(NSString *)theBodyString;

//回主页
-(void)toMainView;

//到工具箱
-(void)toToolBox:(id)sender;

@end
